package io.seata.samples.sc.tccat.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lenovo
 */
@FeignClient("sc-tccat-provider-two")
public interface TccActionTwoFeign {
    /**
     * 方法描述
     *
     * @param param
     * @return java.lang.String
     */
    @GetMapping("/prepare")
    String prepare(@RequestParam(name = "param") String param);

    /**
     * 方法描述
     *
     * @param param
     * @return java.lang.String
     */
    @GetMapping("/commit")
    String commit(@RequestParam(name = "param") String param);

    /**
     * 方法描述
     *
     * @param param
     * @return java.lang.String
     */
    @GetMapping("/rollback")
    String rollback(@RequestParam(name = "param") String param);
}
